package com.zzl.logger;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

public class Hello {
	
	private static Logger logger = LogManager.getLogger(Hello.class.getName());

    public void getHello() {

    //    logger.entry();
        logger.trace("我是trace");
        logger.info("我是info信息");
        logger.error("我是error");
        logger.fatal("我是fatal");

        logger.trace("退出程序.");
  //      logger.exit();
    }

    public static void main(String[] args) {
        new Hello().getHello();
    }

}
